Skip to content

MOBILE-408: Pass App Link intents to the SDK from onNewIntent - #244

Merged
justSmK merged 1 commit into
developfrom
feature/MOBILE-647-android-app-links
Nov 18, 2026
Merged

justSmK merged 1 commit into
developfrom
feature/MOBILE-647-android-app-links

Conversation

@justSmK

@justSmK justSmK commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

FlutterActivity hands a new intent only to plugins (FlutterActivityAndFragmentDelegate.onNewIntent), without setIntent, and the plugin forwarded only push intents. With the singleTop MainActivity of the Flutter template, a warm App Link open reached Mindbox as a direct visit without the URL, and an open into the app on screen sent no visit. The plugin now passes every non-push intent to Mindbox.onNewIntent; the SDK keeps only intents with data and drops repeats by hash.

Checked on the PushOk Flutter app (Android 17 emulator) with the patched plugin: from background the log goes from Track visit event with source direct and url null to source link and url https://mindbox.ru/…, and into the app on screen from no visit to source link. No Kotlin unit-test harness exists in mindbox_android, so the check is that run.

From background the SDK also sends a direct visit just before the link one: on Android 10+ onStart comes before onNewIntent, so the foreground return fires first. Native and React Native apps get the same pair (accepted in WMSDK-548); only the Android SDK can drop it.

Deep links with a custom scheme (myapp://…) now reach the SDK too and go out as a direct visit without a URL: a new visit into the app on screen, a second direct from background on Android 10+. An in-app button whose redirectUrl opens the app itself now sends a visit as well. Native apps behave the same.

Fixes MOBILE-408.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change forwarding non-push App Link intents to the Mindbox SDK.

No open issues 🎉

What changed in this PR

This PR fixes warm App Link handling in the Flutter Android plugin by forwarding non-push intents to the Mindbox SDK, allowing it to track link visits and their URLs.

Changes:

  • Forward non-push intents from onNewIntent to Mindbox.onNewIntent, preserving existing push handling.
  • Extract the push intent extra key into a shared constant.
File Description
mindbox_android/​android/​src/​main/​kotlin/​cloud/​mindbox/​mindbox_android/​MindboxAndroidPlugin.kt Forward non-push intents to the SDK and centralize the push extra key.

Review effort: Balanced

FlutterActivity hands a new intent only to plugins and does not call
setIntent, and the plugin forwarded only push intents. A warm App Link
open reached Mindbox as a direct visit without the URL, and an open into
the app on screen sent no visit at all.
@justSmK
justSmK force-pushed the feature/MOBILE-647-android-app-links branch from d770dec to 16cb877 Compare November 17, 2026 16:13
@justSmK justSmK changed the title MOBILE-647: Pass App Link intents to the SDK from onNewIntent MOBILE-408: Pass App Link intents to the SDK from onNewIntent Nov 17, 2026
@justSmK
justSmK merged commit b62aba4 into develop Nov 18, 2026
3 checks passed
@justSmK
justSmK deleted the feature/MOBILE-647-android-app-links branch November 18, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants